﻿using System;
using System.Collections.Generic;
using Kiranchand.Dsl.Extensions.PropertyVisibility;
using Microsoft.VisualStudio.Modeling;
using System.ComponentModel;

namespace KiranChand.PVE10.Samples.ClassLibrary
{
    [TypeDescriptionProvider(typeof(ModelElementDescriptionProvider))]
    public partial class ModelClass : IRolePlayerProviderDecorator 
    {
        public bool CanShowRolePlayer(DomainClassInfo rolePlayerInfo, ModelElement rolePlayerInstance)
        {
            return rolePlayerInstance != null
                && rolePlayerInstance != this;
        }
    }
}
